// AI助手相关API
window.aiAPI = {
    // 发送消息给AI助手
    sendMessage: async (message, history = []) => {
        try {
            const response = await apiClient.post('/api/ai/chat', {
                message: message,
                history: history
            });
            return response;
        } catch (error) {
            console.error('AI助手请求失败:', error);
            throw error;
        }
    }
};

